dns-server

This command defines the DNS servers for the DHCP pool on the specified interface.

Syntax

dns-server <ip address> 

Command

Description

<ip address>

Specifies a valid IPv4 address. IP addresses should be expressed in dotted decimal notation (for example, 10.1.2.3).

Default

NA

Command Mode

Privileged User

Example

This example enters the ip dhcp pool on VLAN 5 and sets the DNS server to 10.1.2.3.

(dhcp-conf-VLAN 5)#dns-server 10.1.2.3